package com.spvs.approval.domain.vo;

import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Map;

/**
 * 审批表单接收类
 */
@Data
public class ApprovalFromVo implements Serializable {

    private static final long serialVersionUID = 1L;
    private Integer id;

    /**
     * 审批状态 (101未开始   201 审批中  301通过  302 驳回)
     */
    public final static Integer  APPROVAL_STATUS_NOT_STARTED=101;
    public final static Integer  APPROVAL_STATUS_IN_PROGRESS=201;
    public final static Integer  APPROVAL_STATUS_ADOPT=301;
    public final static Integer  APPROVAL_STATUS_NOT_PASSED=302;


    /**
     * 数据有效1 无效0
     */
    public final static String  APPROVAL_DATA_STATUS_EFFECTIVE="1";
    public final static String  APPROVAL_DATA_STATUS_INVALID="0";

    /**
     * 编码
     */
    private String code;
    /**
     * 当前节点标识
     */
    private Integer currentNodeId;
    /**
     * 状态   审批状态 (101未开始   201 审批中  301通过  302 驳回)
     */
    @NotNull
    private Integer status;


    /**
     * 标题
     */
    @NotNull
    private String title;
    /**
     * 表单地址
     */
    private String fromUrl;
    /**
     * 审批明细单
     */
    private  ApprovalSubmitVo submit;

    /**
     * 图片地址
     */
    private String imgUrl;

    /**
     * 审批内容
     */
    @NotNull
    private String content;

    private Integer createUserId;
    /**
     * 创建人名称
     */
    private String createUserName;

    /**
     * 数据状态
     */
    private String dataStatus;

    /**
     * 模版标识
     */

    private String classifyId;

    /**
     * 类型
     */
    @NotNull
    private String type;

    private String businessId;

    private Map busJsonMap;


    /**
     * 编码
     */
    private String codes;
}
